package com.ruoyi.deal.service.impl;

import java.util.List;

import com.ruoyi.deal.domain.CcsPackage;
import com.ruoyi.deal.mapper.CcsPackageMapper;
import com.ruoyi.deal.service.ICcsPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 包裹Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@Service
public class CcsPackageServiceImpl implements ICcsPackageService
{
    @Autowired
    private CcsPackageMapper ccsPackageMapper;

    /**
     * 查询包裹
     *
     * @param id 包裹主键
     * @return 包裹
     */
    @Override
    public CcsPackage selectCcsPackageById(Long id)
    {
        return ccsPackageMapper.selectCcsPackageById(id);
    }

    /**
     * 查询包裹列表
     *
     * @param ccsPackage 包裹
     * @return 包裹
     */
    @Override
    public List<CcsPackage> selectCcsPackageList(CcsPackage ccsPackage)
    {
        return ccsPackageMapper.selectCcsPackageList(ccsPackage);
    }

    /**
     * 新增包裹
     *
     * @param ccsPackage 包裹
     * @return 结果
     */
    @Override
    public int insertCcsPackage(CcsPackage ccsPackage)
    {
        return ccsPackageMapper.insertCcsPackage(ccsPackage);
    }

    /**
     * 修改包裹
     *
     * @param ccsPackage 包裹
     * @return 结果
     */
    @Override
    public int updateCcsPackage(CcsPackage ccsPackage)
    {
        return ccsPackageMapper.updateCcsPackage(ccsPackage);
    }

    /**
     * 批量删除包裹
     *
     * @param ids 需要删除的包裹主键
     * @return 结果
     */
    @Override
    public int deleteCcsPackageByIds(Long[] ids)
    {
        return ccsPackageMapper.deleteCcsPackageByIds(ids);
    }

    /**
     * 删除包裹信息
     *
     * @param id 包裹主键
     * @return 结果
     */
    @Override
    public int deleteCcsPackageById(Long id)
    {
        return ccsPackageMapper.deleteCcsPackageById(id);
    }
}
